package net.huashitong.Indicators.service;

import com.sirdc.modules.sys.service.RedisService;


import java.util.TimerTask;


public class ItemJobService extends  TimerTask{


    private RedisService redisService;

    private String message;

    public ItemJobService(RedisService redisService, String message) {
        this.redisService = redisService;
        this.message = message;
    }

    @Override
    public void run() {

        System.out.println("-------------选课时间"+message+"时间到了-------------");

        redisService.set("choosestatue","1");
    }



}
